package com.hwq.consumer.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * className TestController
 * description TestController
 *
 * @author hwq
 * @version 1.0
 * @date 2019-01-30 18:19
 */
@RestController
public class TestController2 {

    private static final Logger logger = LoggerFactory.getLogger(TestController2.class);



    @PostMapping("/test1")
    public String test(@RequestParam String text) {
        logger.info("text value : {}",text);
        return text;
    }
}